﻿$def with (edit_form, id)
$var title: edit blog

$def get_myscripts():
    <!-- tinyMCE -->
    <script language="javascript" type="text/javascript" src="/jscripts/tiny_mce/tiny_mce.js"></script>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
    mode : "textareas",
    theme : "advanced",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_toolbar_statusbar_location : "bottom",
    theme_advanced_resizing : true,
    });
    </script>
    <!-- /tinyMCE -->

$var title: edit blog
$var scripts: $get_myscripts()

<div id="content" class="narrowcolumn">

<form action="/edit" method="post">
$if not edit_form.valid: <p>对不起，您输入的东西可能不大对劲，要不再瞅瞅</p>
$:edit_form.render()
<input type="submit" name="post_submit" value="写完啦" />
</form>
</div>
